package com.ourteam.product.ui.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-12-14 15:15:09 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class ProductUITreeNodeBuilder implements java.io.Serializable {

  public ProductUITreeNodeBuilder() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long nodeId;

  /** Attribute nodeId Be Seted Falg */
  private boolean nodeIdSetted = false;

  /** Attribute nodeId is Null Falg */
  private boolean nodeIdNull = false;

  /**
   * Get nodeId
   *
   * @return long
   */
  public final long getNodeId() {

    return nodeId;
  }

  /**
   * Set nodeId
   *
   * @param long
   */
  public final void setNodeId(long nodeId) {

    this.nodeId = nodeId;

    this.nodeIdSetted = true;

    this.setNodeIdNull(false);
  }

  /**
   * Get nodeId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isNodeIdSetted() {
    return this.nodeIdSetted;
  }

  /** Set nodeId Null */
  public final void setNodeIdNull() {

    this.nodeIdNull = true;
  }

  public final void setNodeIdNull(boolean aNullFlag) {

    this.nodeIdNull = aNullFlag;
  }

  public final boolean isNodeIdNull() {

    return this.nodeIdNull;
  }

  private String code;

  /** Attribute code Be Seted Falg */
  private boolean codeSetted = false;

  /** Attribute code is Null Falg */
  private boolean codeNull = false;

  /**
   * Get code
   *
   * @return String
   */
  public final String getCode() {

    if (isCodeNull()) {
      return null;
    } else {
      return StringUtils.trim(code);
    }
  }

  /**
   * Set code
   *
   * @param String
   */
  public final void setCode(String code) {

    this.code = StringUtils.trim(code);

    this.codeSetted = true;

    this.setCodeNull(this.code == null);
  }

  /**
   * Get code Has Been Setted
   *
   * @return boolean
   */
  public final boolean isCodeSetted() {
    return this.codeSetted;
  }

  /** Set code Null */
  public final void setCodeNull() {

    this.codeNull = true;
  }

  public final void setCodeNull(boolean aNullFlag) {

    this.codeNull = aNullFlag;
  }

  public final boolean isCodeNull() {

    return this.codeNull;
  }

  private String nodeBuilder;

  /** Attribute nodeBuilder Be Seted Falg */
  private boolean nodeBuilderSetted = false;

  /** Attribute nodeBuilder is Null Falg */
  private boolean nodeBuilderNull = false;

  /**
   * Get nodeBuilder
   *
   * @return String
   */
  public final String getNodeBuilder() {

    if (isNodeBuilderNull()) {
      return null;
    } else {
      return StringUtils.trim(nodeBuilder);
    }
  }

  /**
   * Set nodeBuilder
   *
   * @param String
   */
  public final void setNodeBuilder(String nodeBuilder) {

    this.nodeBuilder = StringUtils.trim(nodeBuilder);

    this.nodeBuilderSetted = true;

    this.setNodeBuilderNull(this.nodeBuilder == null);
  }

  /**
   * Get nodeBuilder Has Been Setted
   *
   * @return boolean
   */
  public final boolean isNodeBuilderSetted() {
    return this.nodeBuilderSetted;
  }

  /** Set nodeBuilder Null */
  public final void setNodeBuilderNull() {

    this.nodeBuilderNull = true;
  }

  public final void setNodeBuilderNull(boolean aNullFlag) {

    this.nodeBuilderNull = aNullFlag;
  }

  public final boolean isNodeBuilderNull() {

    return this.nodeBuilderNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String remarks;

  /** Attribute remarks Be Seted Falg */
  private boolean remarksSetted = false;

  /** Attribute remarks is Null Falg */
  private boolean remarksNull = false;

  /**
   * Get remarks
   *
   * @return String
   */
  public final String getRemarks() {

    if (isRemarksNull()) {
      return null;
    } else {
      return StringUtils.trim(remarks);
    }
  }

  /**
   * Set remarks
   *
   * @param String
   */
  public final void setRemarks(String remarks) {

    this.remarks = StringUtils.trim(remarks);

    this.remarksSetted = true;

    this.setRemarksNull(this.remarks == null);
  }

  /**
   * Get remarks Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRemarksSetted() {
    return this.remarksSetted;
  }

  /** Set remarks Null */
  public final void setRemarksNull() {

    this.remarksNull = true;
  }

  public final void setRemarksNull(boolean aNullFlag) {

    this.remarksNull = aNullFlag;
  }

  public final boolean isRemarksNull() {

    return this.remarksNull;
  }

  private int sortIndex;

  /** Attribute sortIndex Be Seted Falg */
  private boolean sortIndexSetted = false;

  /** Attribute sortIndex is Null Falg */
  private boolean sortIndexNull = false;

  /**
   * Get sortIndex
   *
   * @return int
   */
  public final int getSortIndex() {

    return sortIndex;
  }

  /**
   * Set sortIndex
   *
   * @param int
   */
  public final void setSortIndex(int sortIndex) {

    this.sortIndex = sortIndex;

    this.sortIndexSetted = true;

    this.setSortIndexNull(false);
  }

  /**
   * Get sortIndex Has Been Setted
   *
   * @return boolean
   */
  public final boolean isSortIndexSetted() {
    return this.sortIndexSetted;
  }

  /** Set sortIndex Null */
  public final void setSortIndexNull() {

    this.sortIndexNull = true;
  }

  public final void setSortIndexNull(boolean aNullFlag) {

    this.sortIndexNull = aNullFlag;
  }

  public final boolean isSortIndexNull() {

    return this.sortIndexNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof ProductUITreeNodeBuilder) == false) {
      return false;
    }
    ProductUITreeNodeBuilder other = (ProductUITreeNodeBuilder) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("sortIndex=");
    buffer.append(this.sortIndex);

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("nodeId=");
    buffer.append(this.nodeId);

    buffer.append("code=");
    buffer.append(this.code);

    buffer.append("nodeBuilder=");
    buffer.append(this.nodeBuilder);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("remarks=");
    buffer.append(this.remarks);

    buffer.append("]");

    return buffer.toString();
  }
}
